Skip to content

fix(engine): implement llm.Provider via contract aliases#88

Merged
Patel230 merged 4 commits into
mainfrom
feat/llm-provider-contract-assert
Jul 22, 2026
Merged

fix(engine): implement llm.Provider via contract aliases#88
Patel230 merged 4 commits into
mainfrom
feat/llm-provider-contract-assert

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

  • Re-export host-facing DTOs from hawk-core-contracts/llm as engine type aliases.
  • Add compile-time asserts: *Engine implements llm.Provider, *Stream implements EventStreamer.
  • Engine.Stream returns EventStreamer with correct nil-interface handling.
  • Document the llm dependency on the ecosystem boundary.

Depends on

Local go.work continues to replace contracts for development. After contracts lands, consumers can pin the released module version as usual.

Test plan

  • go test ./engine/...
  • go test ./...
  • bash scripts/check-ecosystem-boundaries.sh

Re-export host-facing DTOs from hawk-core-contracts/llm, assert *Engine
implements llm.Provider and *Stream implements EventStreamer, return
EventStreamer from Stream with proper nil-interface handling, and document
the llm dependency on the ecosystem boundary.
Patel230 added 3 commits July 22, 2026 22:48
CI resolves modules without go.work; pin the feature commit that provides
EventStreamer, CheckStatus, and the aligned CatalogHealth/Preflight types.
Use the published main tip so CI can resolve EventStreamer and aligned
host types without feature-branch pseudo-version unshallow issues.
Use the tagged host-port alignment release so CI avoids pseudo-version
unshallow failures.
@Patel230
Patel230 merged commit 9debb70 into main Jul 22, 2026
16 checks passed
@Patel230
Patel230 deleted the feat/llm-provider-contract-assert branch July 22, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant